package org.example.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.example.model.TransferRecord;
import org.springframework.data.repository.query.Param;

import java.util.Date;
import java.util.List;
/**
 * @author lijun
 * @date 2025-10-20 11:48
 */

@Mapper
public interface TransferRecordMapper {
    List<TransferRecord> selectAll();

    TransferRecord selectById(Integer id);

    int insert(TransferRecord record);

    int update(TransferRecord record);

    int deleteById(Integer id);

    List<TransferRecord> selectByCondition(@Param("channel") String channel,
                                           @Param("type") String type,
                                           @Param("startTime") Date startTime,
                                           @Param("endTime") Date endTime);
}